///////////////////////////////////////////////////////////
//  uart.h
//  Driver for the uart device.
//  Created on:      14-March-2012
//  Original author: stonehockera
///////////////////////////////////////////////////////////

#include <stdint.h>
#if !defined(uart_h)
#define uart_h
	FILE uart_str=FDEF_SETUP_STREAM(uart_putc,uart_getc,_FDEF_SETUP_RW);
	void uart_init(uint8_t baudrate, uint8_t CPUclockFreq);
	void uart_putc(char a);//Writes a character to serial output device
	char uart_getc(void); //Gets a character from serial input device
	void waitFor(char a);
#endif // !defined(uart_h)
